package com.ysd.lis.controller.lab;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.lab.SupplierAppraiseDto;
import com.ysd.lis.request.lab.SupplierAppraiseParam;
import com.ysd.lis.service.lab.LabSupplierAppraiseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-02-03
 */
@Api(tags = "供应商评价登记")
@RestController
@RequestMapping("/lis/lab/supplierAppraise")
public class LabSupplierAppraiseController extends BaseController {

    @Autowired
    LabSupplierAppraiseService labSupplierAppraiseService;
    @ApiOperation("查询")
    @GetMapping("/findSupplierAppraiseList")
    public Result findSupplierAppraiseList(SupplierAppraiseParam param){
        return labSupplierAppraiseService.findSupplierAppraiseList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateSupplierAppraise")
    public Result saveOrUpdateSupplierAppraise(@RequestBody SupplierAppraiseDto dto) {
        return labSupplierAppraiseService.saveOrUpdateSupplierAppraise(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteSupplierAppraiseList")
    public Result batchDeleteSupplierAppraiseList(@RequestBody SupplierAppraiseDto dto){
        return  labSupplierAppraiseService.batchDeleteSupplierAppraiseList(dto);
    }



}
